//2009/08/18 01:59:03
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class TaxTable
{
public:
    int income(int t)
    {
        int ret;
        ret = int((t+6525)/0.25+0.5);
        if (ret>=100000 && ret<117250)return ret;
        ret = int((t+10042.5)/.28+0.5);
        if (ret>=117250&&ret<178650)return ret;
        ret = int((t+18975)/.33+0.5);
        if (ret>=178650&&ret<319100) return ret;
        ret = int((t+25357)/.35+.5);
        if (ret>=319100) return ret;
        return -1;
    }
};
